<link href="__STATIC__/admin/css/tab.css" type="text/css" rel="stylesheet">
<link href="__STATIC__/admin/css/profiles.css" type="text/css" rel="stylesheet">
<link href="__STATIC__/admin/css/order.css" type="text/css" rel="stylesheet">


<div id="right-content" style="margin: 0px;"> <!-- ngView:  -->
    <div id="content" style="padding: 0px;" class="rel">
        <div id="order_hd" class="rel">
            <ul id="tab_ul" class="c_txt abs">
                <li class="tab_li pointer left rel for_gaq <?php if($op == '-1'){ echo 'current_tab_li';}?> " data-type="0">
                    <a href="<?php echo U('Orderform/orderlist') ?>"> 全部 </a>
                </li>
                <li class="tab_li pointer left rel for_gaq <?php if($op == '0'){ echo 'current_tab_li';}?> " data-type="1">
                    <a href="<?php echo U('Orderform/orderlist',array('op'=>0)) ?>"> 未付款 </a>
                </li>
                <li class="tab_li pointer left rel for_gaq <?php if($op == '1'){ echo 'current_tab_li';}?> " data-type="2">
                    <a href="<?php echo U('Orderform/orderlist',array('op'=>1)) ?>">已付款</a>
                </li>
                <li class="tab_li pointer left rel for_gaq <?php if($op == '2'){ echo 'current_tab_li';}?> " data-type="3">
                    <a href="<?php echo U('Orderform/orderlist',array('op'=>2)) ?>">已发货</a>
                </li>
                <li class="tab_li pointer left rel for_gaq <?php if($op == '3'){ echo 'current_tab_li';}?> " data-type="4">
                    <a href="<?php echo U('Orderform/orderlist',array('op'=>3)) ?>">已完成</a>
                </li>
            </ul>
            <div id="order_search_wrap" class="wrap">
                <form action="" method="get" name="order_search_form" id="order_search_form">
                    <input type="text" id="order_search_key" name="key" class="input block wrap input_y">
                </form>
            </div>
        </div>

        <ul id="list_ul" class="wrap font14">
            <li id="list_hd" class="c_txt over_hidden">
                <div class="list_o_div rel">
                    <div class="list_order_a list_hd_lineH">商品图片</div>
                    <div class="list_order_b list_hd_lineH">商品名称</div>
                    <div class="list_order_a list_hd_lineH">商品金额</div>
                    <div class="list_order_c list_hd_lineH">收货人信息</div>
                    <div class="list_order_d list_hd_lineH">留言</div>
                    <div class="list_order_e list_hd_lineH">操作</div>
                </div>
            </li>
            <?php foreach($orderinfo as $v){ ?>
            <li class="list_li">
                <div class="list_o_tle gray_txt">
                    资金交易号:<?php echo $v['money_number'] ?> &nbsp;&nbsp;&nbsp;
                    订单编号:<?php echo $v['order_number'] ?> &nbsp;&nbsp;&nbsp;
                    快递公司:<?php echo $v['waybill_name'] ?> &nbsp;&nbsp;&nbsp;
                    快递单号:<?php echo $v['waybill_number'] ?> &nbsp;&nbsp;&nbsp;
                    下单时间:<?php echo date('Y-m-d H:i:s',$v['addtime']); ?> &nbsp;&nbsp;&nbsp;
                    更新时间:<?php echo date('Y-m-d H:i:s',$v['uptime']); ?> &nbsp;&nbsp;&nbsp;
                    订单状态:<?php if($v['otype']=='0'){echo '未交费';}elseif($v['otype']=='1'){echo '等待发货';}elseif($v['otype']=='2'){echo '已发货';}elseif($v['otype']=='3'){echo '交易成功';} ?> &nbsp;&nbsp;&nbsp;
                    更新时间:<?php echo date('Y-m-d H:i:s',$v['addtime']); ?> &nbsp;&nbsp;&nbsp;
                </div>
                <div class="list_o_div rel">
                    <div class="list_order_a c_txt">
                        <img src="<?php echo '__ROOT__/'.$v['gpic']; ?>" width="70" height="70" class="list_o_img abs">
                    </div>
                    <div class="list_order_b c_txt">
                        <br>
                        <p><?php echo $v['gname']; ?></p>
                    </div>
                    <div class="list_order_a c_txt">
                        <br>
                        <p><?php if($v['omoney'] != '0'){ echo '￥'.$v['omoney']; }else{ echo '无';} ?></p>
                    </div>
                    <div class="list_order_c"><?php echo $v['adname']; ?>&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $v['admoblie'] ?><br>
                        <?php echo $v['address'] ?></div>
                    <div class="list_order_d c_txt"><?php echo $v['notes'] ?></div>
                    <div class="list_order_e c_txt">
                        <?php if($v['otype']=='0'){ ?>
                        <a href="<?php echo U('orderform/addorder',array('op'=>'modify','oid'=>$v['oid'])); ?>" class="blu_txt list_o_btn">修改订单</a>
                        <a href="<?php echo U('orderform/del',array('oid'=>$v['oid'])); ?>" class="blu_txt list_o_btn">删除订单</a>
                        <?php }elseif($v['otype']=='1'){ ?>
                        <a href="<?php echo U('orderform/seeorder',array('op'=>'see','oid'=>$v['oid'])); ?>" class="blu_txt list_o_btn">查看支付</a>
                        <a href="<?php echo U('orderform/seeorder',array('op'=>'add','oid'=>$v['oid'])); ?>" class="blu_txt list_o_btn">发货运单</a>
                        <?php }elseif($v['otype']=='2'){ ?>
                        <a href="<?php echo U('orderform/seeorder',array('op'=>'modify','oid'=>$v['oid'])); ?>" class="blu_txt list_o_btn">修改发货</a>
                        <?php }elseif($v['otype']=='3'){ ?>
                        <?php } ?>
                    </div>
                    <div class="clear"></div>
                </div>
            </li>
            <?php } ?>
            <li class="list_li list_page">
            <?php echo $page; ?>
            </li>
        </ul>
    </div>

</div>
</div>
</body>
</html>